package com.bright.ghj.overt.repository.primary;

import com.bright.ghj.overt.pojo.po.primary.FilelistCwgkFooter;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface FilelistCwgkFooterRepository extends JpaRepository<FilelistCwgkFooter, Integer>, JpaSpecificationExecutor<FilelistCwgkFooter> {

    @Query("from FilelistCwgkFooter where fileName=:fileName and visible=true order by disId")
    List<FilelistCwgkFooter> findFilelistCwgkFootersByFileName(@Param("fileName") String fileName);

}